<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>dotnet class constructor</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="class.dotnet.html">« dotnet</a></li>
      <li style="float: right;"><a href="class.variant.html">variant »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="class.dotnet.html">dotnet</a></li>
    <li>dotnet class constructor</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="dotnet.construct" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">dotnet::__construct</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.1.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">dotnet::__construct</span> &mdash; <span class="dc-title">dotnet class constructor</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-dotnet.construct-description">
  <h3 class="title">说明</h3>
  <div class="constructorsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>dotnet::__construct</strong></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$assembly_name</code></span>, <span class="methodparam"><span class="type">string</span> <code class="parameter">$datatype_name</code></span>, <span class="methodparam"><span class="type">int</span> <code class="parameter">$codepage</code><span class="initializer"> = <strong><code>CP_ACP</code></strong></span></span>)</div>

  <p class="para rdfs-comment">
   Constructs a new dotnet object.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-dotnet.construct-parameters">
  <h3 class="title">参数</h3>
  <dl>
   
    <dt>
<code class="parameter">assembly_name</code></dt>

    <dd>

     <span class="simpara">
      Specifies which assembly should be loaded.
     </span>
    </dd>

   
   
    <dt>
<code class="parameter">datatype_name</code></dt>

    <dd>

     <span class="simpara">
      Specifices which class in that assembly to instantiate.
     </span>
    </dd>

   
   
    <dt>
<code class="parameter">codepage</code></dt>

    <dd>

     <span class="simpara">
      Codepage to use for unicode string transformations;
      see the <a href="class.com.html" class="xref">com</a> class for more details on code pages.
     </span>
    </dd>

   
  </dl>

 </div>


</div></div></div></body></html>